
<meta charset="UTF-8" />

<div id="dv1">我是div</div>


<script>

    document.getElementById("dv1").addEventListener('click', ()=>{
        alert('事件机制：事件委派成功！')
    })


</script>